package creational.factory.factoryMethod;

public abstract class FruitCreator {

    public Fruit factory() throws FactoryException{
        Fruit fruit = instance();
        fruit.init();
        return fruit;
    }

    public abstract Fruit instance() throws FactoryException;
}
